package com.yanqu.road.server.manger.union.listener;

import com.yanqu.road.entity.enums.eUnionSyncType;
import com.yanqu.road.entity.union.cross.CrossUnionInfo;
import com.yanqu.road.entity.union.cross.CrossUnionMember;
import com.yanqu.road.server.manger.ICrossUnionSyncListener;
import com.yanqu.road.server.manger.activity.strongholdwar.StrongholdWarMgr;

import java.util.List;

public class StrongholdListener implements ICrossUnionSyncListener {

    @Override
    public void notifySync(int syncType, long playerId, CrossUnionInfo unionInfo, List<CrossUnionMember> memberList) {
        if (syncType == eUnionSyncType.Normal.getValue()) {
            // 同步据点战商会信息
            StrongholdWarMgr.unionChange(unionInfo.getUnionUid(), unionInfo);
        }
    }
}
